import { createStore } from "vuex";

export default createStore({
  state: {
    age: 18,
    list: [
      { name: "小明", age: 18 },
      { name: "小丽", age: 20 },
      { name: "小红", age: 30 },
    ],
  },
  mutations: {
    changeAge(state) {
      state.age++;
    },
  },
  actions: {},
  modules: {},
});
